﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace INF7GEN
{
    static class Save
    {
        public static bool SaveGame(String dir, GlobalStates game)
        {
            return Serializer.SerializeObject(dir, game);
        }

        public static GlobalStates Load(String dir)
        {
            return Serializer.DeSerializeObject(dir);
        }
    }
}
